package com.aizuda.boot.modules.business.permission.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author sangyirong
 * @ClassName RoleEmployeeScopeRel
 * @Version 1.0
 * @Date 2025/5/26 15:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("auth_role_employee_scope_rel")
public class RoleEmployeeScopeRelEntity {

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "角色ID")
    private Long roleId;

    @Schema(description = "员工ID")
    private Long employeeId;

    @Schema(description = "是否全部部门")
    private Boolean departmentAll;

    @Schema(description = "部门ID,，多个逗号拼接")
    private String department;

    @Schema(description = "是否全部城市,多个逗号拼接")
    private Boolean cityAll;

    @Schema(description = "城市")
    private String city;

    @Schema(description = "创建时间")
    private Date createdAt;

    @Schema(description = "更新时间")
    private Date updatedAt;
}
